
//-------------------------
// Legislators as Lobbyists
// FIGURE A4
//-------------------------

clear
use masterdata_house.dta

twoway (kdensity trade_idealpoint1 if democrat ==1 & congress ==111, xtitle("Support for Free Trade") ytitle("Density") lwidth(medthick) graphregion(color(white)) legend(label(1 "Democrats") label(2 "Republican"))) ///
(kdensity trade_idealpoint1 if democrat ==0 & congress ==111, col(red) lwidth(medthick) lpattern(dash))

twoway (scatter trade_idealpoint1 dwnom1 if democrat ==1 & congress ==111, msymbol(smcircle) mcolor(blue) xtitle("DW-NOMINATE Score") ytitle("Support for Free Trade") graphregion(color(white)) legend(label(1 "Democrats") label(2 "Republican"))) ///
(scatter trade_idealpoint1 dwnom1 if democrat ==0 & congress == 111, msymbol(smdiamond) mcolor(red))

